<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
	request.setAttribute("path", basePath);
%>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>平台</title>
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="../../h/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../h/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- Data Tables -->
    <link href="../../h/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="../../h/css/animate.css" rel="stylesheet">
    <link href="../../h/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../../h/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="../../h/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
         <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>平台管理</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="">
                            <a id="addBranchBtn" href="javascript:void(0);" class="btn btn-primary ">添加平台</a>
                        </div>
                        <table class="table table-striped table-bordered table-hover branchTable">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

	<div class="modal inmodal fade" id="addBranchModal" tabindex="-1" role="dialog"  aria-hidden="true">
        <div class="modal-dialog ">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">添加新平台</h4>
                </div>
                <div class="modal-body">
	                  <form class="form-horizontal m-t" id="addBranchForm">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">平台名称：</label>
                                <div class="col-sm-8">
                                    <input id="name" name="name" type="text" class="form-control" >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">记录开始时间：</label>
                                <div class="col-sm-8">
                                    <input id="startTime" name="startTime" class="form-control layer-date laydate-icon" placeholder="YYYY-MM-DD hh:mm:ss" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                                </div>
                            </div>
                            <div class="form-group">
	                            <label class="col-sm-3 control-label">输入手机号：</label>
	                            <div class="col-sm-8">
		                    	 	<input type="text" name="userphone" id="userphone" class="form-control">
			                    </div>
			                </div>
			                <div class="form-group">
			                	<label class="col-sm-3 control-label">验证码：</label>
			                	<div class="col-sm-8">
				                    <div class="input-group ">
				                        <input type="text" name="checkNum" id="checkNum" class="form-control"> 
					               		<span class="input-group-btn">
					               			<button type="button" id="checkNumBtn" class="btn btn-outline btn-warning">获取验证码</button>
					               		</span>
				                   </div>
			                   </div>
			                </div>
                        </form>
	            </div>
	                <div class="modal-footer">
	                	<button class="btn btn-primary" type="button" id="addBranchSubmit">提交</button>
	                    <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
	                </div>
        	</div>
   		</div>
    </div>


 	<!-- 全局js -->
    <script src="../../h/js/jquery.min.js?v=2.1.4"></script>
    <script src="../../h/js/bootstrap.min.js?v=3.3.6"></script>

  	<script src="../../h/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="../../h/js/plugins/validate/messages_zh.min.js"></script>
    <!-- Data Tables -->
    <script src="../../h/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="../../h/js/plugins/dataTables/dataTables.bootstrap.js"></script>
	<script src="../../h/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="../../h/js/plugins/jeditable/jquery.jeditable.js"></script>
    <!-- 自定义js -->
    <script src="../../h/js/content.js?v=1.0.0"></script>
    <script src="../../h/js/plugins/toastr/toastr.min.js"></script>
    <script src="../../h/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="../../h/js/plugins/layer/laydate/laydate.js"></script>
    <script src="../../h/js/admin/branch.js"></script>
    <script>
        $(function () {
            $('.full-height-scroll').slimScroll({
                height: '100%'
            });
        });
    </script>
</body>

</html>

